Skip to content

Conversation

@kongdd
Copy link

@kongdd kongdd commented Oct 28, 2025

r = ee_extract(col, sp, via = "getInfo", lazy = FALSE, scale = 500)

Error in ee$Image$reduceRegions(image = img, collection = ee_y, reducer = fun,  : 
  RuntimeError: unused argument (image = img)
Run `reticulate::py_last_error()` for details.
ee$Image$reduceRegions
<function Image.reduceRegions at 0x0000025DAA66E770>
 signature: (
   self, 
   collection: '_arg_types.FeatureCollection', 
   reducer: '_arg_types.Reducer', 
   scale: '_arg_types.Number | None' = None, 
   crs: '_arg_types.Projection | None' = None, 
   crsTransform: '_arg_types.List | None' = None, 
   tileScale: '_arg_types.Number | None' = None, 
   maxPixelsPerRegion: '_arg_types.Integer | None' = None
) -> 'featurecollection.FeatureCollection'

This is a small bug. image is not a keyword Argument.

@kongdd
Copy link
Author

kongdd commented Oct 28, 2025

I also have some print function designed for rgee. If it is welcome, I can contribute in this PR.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant